/*
 * @Author: Haochen
 * @Date: 2021-12-09 19:23:09
 * @LastEditTime: 2021-12-10 18:30:30
 * @FilePath: \students-system\src\api\modules\teachers.js
 */

import axios from 'axios';

export default {
  //   getClassesBySubId(params) {
  //     return axios({
  //       url: '/classes/getClassesBySubjectsId',
  //       params,
  //     });
  //   },

  getTeachers(params) {
    return axios({
      url: '/teachers/getTeachers',
      params,
    });
  },

  addNewTeacher(data) {
    return axios({
      url: '/teachers/addTeachers',
      method: 'POST',
      data,
    });
  },
  deleteTeacher(data) {
    return axios({
      url: '/teachers/deleteTeachers',
      method: 'DELETE',
      data,
    });
  },
};
